、<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateWechatOffiaccountMessageFunctions extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
		Schema::dropIfExists('wechat_offiaccount_message_functions');
        Schema::create('wechat_offiaccount_message_functions', function (Blueprint $table) {
            $table->id();
            $table->string('type',20);
            $table->string('key_type',255)->nullable()->default('');
            $table->string('key',255)->nullable()->default('');
            $table->string('reply_type',20)->nullable()->default('');
            $table->string('reply_content',255)->nullable();
            $table->string('function',255)->nullable();			
            $table->tinyInteger('status')->default(1);
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('wechat_offiaccount_message_functions');
    }
}
